package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import cn.hutool.core.annotation.Alias;

/**
 * <p>
 * 管理
 * </p>
 *
 *
 */
@Data
@ApiModel(value = "Item对象", description = "内容管理")
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("Id")
    @Alias("Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    @Alias("标题")
    private String name;

    @ApiModelProperty("封面")
    @Alias("封面")
    private String img;

    @ApiModelProperty("发布人id")
    @Alias("发布人id")
    private Integer userId;

    @ApiModelProperty("发布人姓名")
    @Alias("发布人姓名")
    private String userName;

    @ApiModelProperty("发布时间")
    @Alias("发布时间")
    private String createDate;

    @ApiModelProperty("描述")
    @Alias("描述")
    private String info;

    @ApiModelProperty("文件")
    @Alias("文件")
    private String file;

    @ApiModelProperty("状态")
    @Alias("状态")
    private String status;

    @ApiModelProperty("分类id")
    @Alias("分类id")
    private Integer cateId;

}
